Interview Questions and Answer
Options:
a. A Web Part is a class that inherits from the WebPart class in System.Web.UI.WebControls.WebParts.
b. It is an ASP.NET server control which can be added to a webpart Zone on a webpart page at runtime.
c. It is used to modify the content appearance and behavior of webpages directly from the browser.
d. You can use both custom controls and user controls to create webparts
e. All of the above.
Reveal Answer
Options:
a. It is harder to create as we need to control the HTML that has to be rendered
b. A single copy a single copy of the control is required in the global assembly cache which can be shared between multiple applications, so maintenance is easy.
c. They can be added to the toolbox in Visual Studio
d. Full visual design tool support for example if properties of the control are changed, they are reflected in the design view.
e. They are useful for creating a dynamic layout
f. All the above
Reveal Answer
Options:
a. It is easy to create as we can add other controls to it.
b. A separate copy of the control is required in each application where it needs to be used as they cannot be compiled into an assembly.It has a .ascx file along with a .cs file.
c. They cannot be added to the toolbox in Visual Studio
d. There is limited visual design tool support for example if properties of the control are changed, they are not reflected in the design view but only in the browser.
e. They are useful for creating a static layout
f. All the above
Reveal Answer
Options:
a. Microsoft.SharePoint.WebPartPages
b. System.Web.UI.WebControls.WebParts.WebPart
c. Either a or b
d. None of the above
Reveal Answer
Options:
a. OnPreRender
b. Render
c. RenderContents
d. None of the above
Reveal Answer
Options:
a. It is used to render the webpart
b. It is used for adding the controls to the webpart
c. Both a and b
d. None of the above
Reveal Answer
Options:
a. It ensures that the CreateChildControls method has been executed
b. It creates the child controls if no controls are created by the CreateChildControls method
c. Both a and b
d. None of the above
Reveal Answer
Options:
a. It is used to make the value of the property persistent in the backend
b. It is used to make the property visible in the Editor Pane of the webpart
c. Both a and b
d. None of the above
Reveal Answer
Options:
a. It is used to make the value of the property persistent in the backend
b. It is used to make the property visible in the Editor Pane of the webpart
c. Both a and b
d. None of the above
Reveal Answer
Options:
a. It is used to create the webpart using built-in asp.net controls
b. We need to render the HTML of each built-in asp.net control used in the composite webpart
c. Both a and b
d. None of the above
Reveal Answer
Options:
a. Both the extensions refer to webparts.
b. .dwp extension was used in WSS 2.0 while .webpart is the extension of WSS 3.0
c. SharePoint webparts(.dwp) are built with backwards compatibility
d. All the above
Reveal Answer
Options:
a. In the bin folder of the web application
b. In GAC
c. In either the bin directory or in the Global Assembly Cache(GAC)
d. None of the above
Reveal Answer
Options:
a. The Safe Controls entry contains the names of controls and Web Parts that can be marked as safe for use on any .aspx page within a site.
b. It is located in the web.config file of the web application.
c. It is used to prevent untrusted users from adding arbitrarily server-side code within ASPX pages.
d. All the above
Reveal Answer
Options:
a. It is a machine-wide code cache
b. It stores assemblies that can be shared by multiple applications on the computer
c. Features are deployed into GAC
d. All the above
Reveal Answer
Options:
a. In SharePoint 2010 you had had a separate .ascx and webpart file for the Visual Webpart.
b. In SharePoint 2013 the Visual WebPart template has merged both the .ascx???
c. In SharePoint 2013 Visual Webpart can also be developed as a Sandboxed solution.
d. A property of the webpart becomes a property of both the user control and the webpart???
Reveal Answer
Bestdotnet google plus